package com.sxy.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.PropertySource;

/**
 * @author 宋鑫宇
 * @version 1.0
 */
//设置为spring的配置类
@Configuration
//设置spring的扫描路径
@ComponentScan("com.sxy.service")
//加载jdbc.properties文件
@PropertySource("classpath:jdbc.properties")
//添加外部配置bean类
@Import({JdbcConfig.class,MybatisConfig.class})
public class SpringConfig {
}
